If you sell a ship with passenger on board you get the money and keep the ship (and the passenger). This bug seems to be fixed in the 1.05 version of the game for the Amiga and in the American PC version.